#region Copyright (c) 2003 - 2006 Toenda Software Development
/*
 * Copyright (c) 2003 - 2006 Toenda Software Development
 */
#endregion

using System;

namespace Toenda.Rails {
	namespace DataContainer {
		/// <summary>
		/// Class NewsItem. Data object for the News.
		/// </summary>
		[Serializable]
		public class NewsItem {
			private string m_ID;
			private string m_Title;
			private DateTime m_Date;
			private string m_Text;
			private bool m_IsEnabled;

			/// <summary>
			/// Default constructor
			/// </summary>
			public NewsItem() {
			}

			/// <summary>
			/// Get or set the id
			/// </summary>
			public string ID {
				get { return m_ID; }
				set { m_ID = value; }
			}

			/// <summary>
			/// Get or set the title
			/// </summary>
			public string Title {
				get { return m_Title; }
				set { m_Title = value; }
			}

			/// <summary>
			/// Get or set the date
			/// </summary>
			public DateTime Date {
				get { return m_Date; }
				set { m_Date = value; }
			}

			/// <summary>
			/// Get or set the text
			/// </summary>
			public string Text {
				get { return m_Text; }
				set { m_Text = value; }
			}

			/// <summary>
			/// Get or set the value if a news is enabled
			/// </summary>
			public bool IsEnabled {
				get { return m_IsEnabled; }
				set { m_IsEnabled = value; }
			}
		}
	}
}
